package com.yishusmt.wechatapi.wechatdev.mapper;

import com.yishusmt.wechatapi.wechatdev.entity.HostUrlEntity;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.CachePut;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Repository;

//@CacheConfig(cacheNames = "host")
@Repository
public interface HostUrlEntityMapper {

//    @CacheEvict(key = "#id", allEntries = true)
    int deleteByPrimaryKey(Long id);

    int insert(HostUrlEntity record);

    int insertSelective(HostUrlEntity record);

//    @Cacheable(key = "#id")
    HostUrlEntity selectByPrimaryKey(Long id);

//    @CachePut(key = "#record.id")
    int updateByPrimaryKeySelective(HostUrlEntity record);

//    @CachePut(key = "#record.id")
    int updateByPrimaryKey(HostUrlEntity record);
}